home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Rinaldi / HC 1.2 & 2.0 / FullOffset 1.0.cpt / FullOffset 1.0 / card_3055.txt < prev    next >
Text File  |  1991-12-25  |  5KB  |  215 lines

  1. -- card: 3055 from stack: in.0
  2. -- bmap block id: 3273
  3. -- flags: 0000
  4. -- background id: 2661
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0007
  11. -- rect: left=69 top=68 right=252 bottom=434
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 9
  17. -- style flags: 0
  18. -- line height: 12
  19. -- part name: 
  20.  
  21.  
  22. -- part 25 (button)
  23. -- low flags: 00
  24. -- high flags: A003
  25. -- rect: left=201 top=278 right=316 bottom=346
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: FullOffset
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   ask "Search what :" with "Frederic"
  37.   if it is empty then exit mouseUp
  38.   put it into Pattern
  39.  
  40.   answer "International" with "false" or "true"
  41.  
  42.   answer FullOffset(Pattern,cd fld 1,it)
  43. end mouseUp
  44.  
  45.  
  46. -- part 26 (field)
  47. -- low flags: 81
  48. -- high flags: 2004
  49. -- rect: left=98 top=87 right=222 bottom=408
  50. -- title width / last selected line: 0
  51. -- icon id / first selected line: 0 / 0
  52. -- text alignment: 0
  53. -- font id: 0
  54. -- text size: 12
  55. -- style flags: 0
  56. -- line height: 16
  57. -- part name: 
  58. ----- HyperTalk script -----
  59. on mouseUp
  60.   hide cd fld 3
  61.   hide cd fld 2
  62. end mouseUp
  63.  
  64.  
  65. -- part 27 (field)
  66. -- low flags: 81
  67. -- high flags: 0000
  68. -- rect: left=179 top=107 right=207 bottom=381
  69. -- title width / last selected line: 0
  70. -- icon id / first selected line: 0 / 0
  71. -- text alignment: 0
  72. -- font id: 3
  73. -- text size: 10
  74. -- style flags: 0
  75. -- line height: 16
  76. -- part name: 
  77. ----- HyperTalk script -----
  78. on mouseUp
  79.   hide cd fld 3
  80.   hide cd fld 2
  81. end mouseUp
  82.  
  83.  
  84. -- part 28 (field)
  85. -- low flags: 81
  86. -- high flags: 6004
  87. -- rect: left=166 top=121 right=202 bottom=338
  88. -- title width / last selected line: 0
  89. -- icon id / first selected line: 0 / 0
  90. -- text alignment: 0
  91. -- font id: 3
  92. -- text size: 10
  93. -- style flags: 256
  94. -- line height: 13
  95. -- part name: 
  96. ----- HyperTalk script -----
  97. on mouseUp
  98.   hide cd fld 4
  99.   hide cd fld 5
  100. end mouseUp
  101.  
  102.  
  103. -- part 29 (field)
  104. -- low flags: 81
  105. -- high flags: 0000
  106. -- rect: left=236 top=151 right=194 bottom=331
  107. -- title width / last selected line: 0
  108. -- icon id / first selected line: 0 / 0
  109. -- text alignment: 0
  110. -- font id: 3
  111. -- text size: 10
  112. -- style flags: 0
  113. -- line height: 13
  114. -- part name: 
  115. ----- HyperTalk script -----
  116. on mouseUp
  117.   hide cd fld 4
  118.   hide cd fld 5
  119. end mouseUp
  120.  
  121.  
  122. -- part contents for card part 1
  123. ----- text -----
  124.  
  125.  
  126.                                              FullOffset 1.0
  127.  
  128.                                         par Fr√©d√©ric RINALDI
  129.  
  130.  
  131. DESCRIPTION
  132. ------------
  133.    FullOffset is an extension to offset() internal HyperTalk instruction. It allows to define to search mode as well as starting char.
  134.  
  135.  
  136. SYNTAX
  137. -------
  138.              FullOffset(<pattern>,<text>[,<offset>][,<international>])
  139.  
  140.  
  141. PARAMETRES
  142. ------------
  143.    <pattern> is the string to be searched.
  144.  
  145.    <text> is the string where <pattern> will be searched.
  146.  
  147.    <offset> is an integer giving the starting char. Default is 1.
  148.  
  149.    <international> is a boolean telling if the search must ignore diacritical marks (true) or be full ASCII (false). Default is true.
  150.  
  151.    Using "!", "?" or "=" as first parameter will return an online help (resp. copyright, syntax and output).
  152.  
  153.  
  154. USING
  155. -----
  156.    The XFCN returns the char number of the found pattern, 0 is not found.
  157.  
  158.    The search is not case-sensitive.
  159.  
  160.  
  161. ERRORS
  162. -------
  163. If an error occurs, FullOffset can return :
  164.  
  165.      "Error : Missing parameter(s)"
  166.      "Error : Pattern cannot exceed 255 chars"
  167.      "Error : Offset param must be a positive integer"
  168.  
  169.  
  170. HISTORY
  171. --------
  172. 1.0 :                                                                                          12/25/91
  173. ‚Ä¢ First release
  174.  
  175. --------------------------------------------------------------------
  176. This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to give full credit and display this copyright information in your stack.
  177. Any commercial use must be licensed and aknowledged by the author.
  178.  
  179.                                         ¬© F. Rinaldi - 1991
  180.  
  181. AppleLink: RINALDI1        CalvaCom : FR10        Compuserve : 71170,2111
  182.  
  183. -- part contents for card part 26
  184. ----- text -----
  185.  
  186. CPU
  187. System
  188. Processor
  189. FPU
  190. ColoQD
  191. Keyboard
  192.  
  193. -- part contents for card part 27
  194. ----- text -----
  195. Macintosh IIx
  196. 6.4
  197. MC68030
  198. true
  199. true
  200. Apple Extended keyboard
  201.  
  202. -- part contents for card part 28
  203. ----- text -----
  204.              Owner Group  All
  205.  
  206. See Folder
  207. See Files
  208. Modify
  209.  
  210.  
  211. -- part contents for card part 29
  212. ----- text -----
  213. true,false,true
  214. true,false,true
  215. true,false,false